package com.hzg.controller;

import com.hzg.service.INoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Description: TODO
 * @ Author: 卓哥
 * @ Date: 2020/8/5 18:48
 * @ Version: 1.0
 */
@RestController
@RequestMapping("notices")
public class NoticeController {
    @Autowired
    private INoticeService noticeService;
    @PostMapping("viewNum")
    public Object viewNum(String id){//id为文章id,作为一个key值存入到redis中
        return noticeService.viewNum(id);
    }
}
